extends Control


func gameEndLose():
	self.modulate.a = 1
	$ColorRect/Win.modulate.a = 0 
	$ColorRect/Lose.modulate.a = 1
	get_tree().create_timer(5).timeout.connect(restartGame)
	
	
func gameEndWin():
	self.modulate.a = 1
	$ColorRect/Win.modulate.a = 1
	$ColorRect/Lose.modulate.a = 0
	get_tree().create_timer(5).timeout.connect(restartGame)
	

func setHide():
	self.modulate.a = 0
	

func restartGame():
	Global.restartGame()

	
	
